#include <stdio.h>
#include <stdlib.h>
typedef struct BSTNode
{
	int data;
	struct BSTNode* left;
	struct BSTNode* right;
}BSTNode;
BSTNode* root = NULL;
int IsBinarySearchTree(BSTNode* root,int MAX,int MIN)
{
	if(root==NULL) return 1;
	if(root->data>MIN
	&&root->data<MAX
	&&IsBinarySearchTree(root->left,MIN,root->data)
	&&IsBinarySearchTree(root->right,MAX,root->data))
	return 1;
	else
	return 0;
}
